package com.snopy.user;


import com.snopy.user.pojo.Users;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author snopy
 * @version 1.0.0
 * @classname UserApplication
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/09 18:29
 */
@SpringBootApplication
@MapperScan(basePackages = {"com.snopy.user.mapper"})
@ComponentScan(basePackages = {"com.snopy","org.n3r.idworker"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.snopy.user.service"})
public class UserApplication {
    /*@ConditionalOnMissingBean(value = ModeConfiguration.class)
    @Bean("org.apache.shardingsphere.infra.config.mode.ModeConfiguration")
    @Primary
    public ModeConfiguration modeConfiguration(){
        Properties props = new Properties();
        PersistRepositoryConfiguration repository = new StandalonePersistRepositoryConfiguration("File",props);
        return new ModeConfiguration("Memory",repository,false);
    }*/
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(UserApplication.class, args);

    }
}
